<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="author" content="wangzhichao">
	<title>选择卡片规格</title>
	<script LANGUAGE="javascript" src="../script/common.js" type="text/javascript"></script>
	<script language="javascript" type="text/javascript">
		var qt = {};
		//初始化数据
		function load(){
			var type=getPara("type");
			Common.initDict(searchForm.type,"blankcard_type","全 部");
			searchForm.cardtype.value=type;
			if(type){
					searchForm.type.disabled = true;
					searchForm.type.value=type;
			}
			createTable();
			qt.showTable();
		}
		//生成查询语句
		function createTable(){
		  	var columns = [];
				columns[0] = {type:"radio"};
			
			qt = new QueryTable("sel_white_list","searchForm","datalist",columns,{columnsConf:false});
		}
		function getBackValue(){
			var radio = qt.getRadioValue(true);
			if(radio==null){
				showInformation("请选择卡片规格");
				return;
			}
			var v = {id : radio[0],
					name : radio[1]
			}
			return v;
		}		
		//保存数据
		function onSave(){
			var v = getBackValue();
			if(!v){
				return;
			}
			dialogBackValue(v)
		}
	</script>
</head>
<body onload="load()">
	<div class="searchForm">
		<form id="searchForm" name="searchForm">
			<input type="hidden" name="cardtype">
			<table cellSpacing=0 cellPadding=4 width="100%" border=0>
				<tr>
					<td><label>卡片类型</label> <select name="type"><option></option></select></td>
					<td><label>规格名称</label> <input type="text" name="name"></td>
					<td><label>厂商信息</label> <input type="text" name="factory"></td>		
					<td><button type="button" onclick="qt.showTable()">查   询</button></td>
				</tr>
			</table>
		</form>
	</div>
	
		<div id=datalist></div>
</body>
</html>
